<template>
	<div class="wallet-container animate-slide">
		<!-- 顶部导航栏 -->
		<div class="nav-bar">
			<div class="back-btn" @click="goBack">
				<span>←</span>
			</div>
			<div class="title">我的零钱</div>
			<div class="placeholder"></div>
		</div>
		
		<!-- 资产展示区 -->
		<div class="asset-display">
			<div class="asset-label">总资产（元）</div>
			<div class="asset-amount">
				<span class="currency">¥</span>
				<span class="amount">0.00</span>
			</div>
		</div>
		
		<!-- 操作按钮区 -->
		<div class="action-buttons">
			<button class="action-btn deposit-btn">充值</button>
			<button class="action-btn withdraw-btn">提现</button>
		</div>
	</div>
</template>

<script>
export default {
	name: 'UserWallet',
	methods: {
		goBack() {
			uni.navigateBack();
		}
	}
}
</script>

<style scoped>
.wallet-container {
	background-color: #9BBFE0;
	min-height: 100vh;
	width: 100%;
	max-width: 100%;
	padding: 0;
	padding-top: var(--status-bar-height, 20px);
	font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
	color: #333;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* 移除所有自定义动画，使用系统原生动画 */
.nav-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	height: 56px;
	background-color: #9BBFE0;
}

.back-btn {
	font-size: 24px;
	cursor: pointer;
	width: 40px;
	text-align: left;
	color: #333;
}

.title {
	font-size: 18px;
	font-weight: 500;
	color: #333;
}

.placeholder {
	width: 40px;
}

/* 资产展示区样式 */
.asset-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 0;
	flex: 1;
	background-color: transparent;
}

.asset-label {
	font-size: 16px;
	color: #333;
	margin-bottom: 20px;
}

.asset-amount {
	display: flex;
	align-items: baseline;
}

.currency {
	font-size: 24px;
	margin-right: 4px;
	color: #333;
}

.amount {
	font-size: 48px;
	font-weight: 500;
	color: #333;
}

/* 操作按钮区样式 */
.action-buttons {
	padding: 20px;
	display: flex;
	justify-content: space-between;
	margin-bottom: 40px;
}

.action-btn {
	width: 48%;
	height: 50px;
	border-radius: 25px;
	border: none;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}

.deposit-btn {
	background-color: #ffffff;
	color: #333;
}

.withdraw-btn {
	background-color: #FFD700;
	color: #333;
}
</style> 